<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>bfsNet: Referencia del Archivo /Users/nicolunacba/Development/Dinic/trunk/network/list.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="bfs-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">bfsNet&#160;<span id="projectnumber">1.0</span></div>
   <div id="projectbrief">Algoritmo BFS para encontrar un camino de fuente a destino en una Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('list_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Estructuras de datos</a> &#124;
<a href="#func-members">Funciones</a>  </div>
  <div class="headertitle">
<div class="title">Referencia del Archivo /Users/nicolunacba/Development/Dinic/trunk/network/list.c</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="list_8h_source.html">list.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="tuple_8h_source.html">tuple.h</a>&quot;</code><br/>
</div>
<p><a href="list_8c_source.html">Ir al código fuente de este archivo.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Estructuras de datos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structs_node.html">sNode</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structs_list.html">sList</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_list.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a92bbfe84653d1fedb6e463414d7bb109">list_create</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a56a64bdb02666e3a7ab1a64cb37c09b5">list_is_empty</a> (<a class="el" href="structs_list.html">List</a> l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a9488cf0bffafdf9a10b591b465b47743">list_exists_elem</a> (<a class="el" href="structs_list.html">List</a> l, <a class="el" href="structs_tuple.html">elem</a> e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_list.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a563fa4772b82dd3c2c0f4927bcfcff8a">list_add_new_elem</a> (<a class="el" href="structs_list.html">List</a> l, <a class="el" href="structs_tuple.html">elem</a> e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#ac717ae40c94d5cb0fdbe46e08f2c639e">list_get_size</a> (<a class="el" href="structs_list.html">List</a> l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_list.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a70b22370b67357786efde98fad8aa75c">list_destroy_elem</a> (<a class="el" href="structs_list.html">List</a> l, <a class="el" href="structs_tuple.html">elem</a> e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_tuple.html">elem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#a485ab244d725fddf0f2bc2e263250756">list_get_elem</a> (<a class="el" href="structs_list.html">List</a> l, long int position)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="list_8c.html#afb09d6d07cbb6e7ae2318a0aa4f6e875">list_destroy</a> (<a class="el" href="structs_list.html">List</a> l)</td></tr>
</table>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="a563fa4772b82dd3c2c0f4927bcfcff8a"></a><!-- doxytag: member="list.c::list_add_new_elem" ref="a563fa4772b82dd3c2c0f4927bcfcff8a" args="(List l, elem e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_list.html">List</a> list_add_new_elem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs_tuple.html">elem</a>&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agrega un elemento a la lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00075">75</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="structs_list.html#ad0ef7e1b5e8b52fff027720e57bebf03">sList::last</a>, <a class="el" href="structs_node.html#a565de7365cb7dce7aedc47a08a888d87">sNode::next</a>, <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>, <a class="el" href="structs_node.html#a113b56e5ef905be5322e2fa3905b9575">sNode::tup</a> y <a class="el" href="tuple_8c.html#af3404883658f7b96d761a197eb73b625">tuple_clone()</a>.</p>

<p>Referenciado por <a class="el" href="network_8h.html#a2e032cd8fed30af6eacbaead8408c126">network_add_node()</a>.</p>

</div>
</div>
<a class="anchor" id="a92bbfe84653d1fedb6e463414d7bb109"></a><!-- doxytag: member="list.c::list_create" ref="a92bbfe84653d1fedb6e463414d7bb109" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_list.html">List</a> list_create </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Crea una lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00029">29</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="structs_list.html#ad0ef7e1b5e8b52fff027720e57bebf03">sList::last</a> y <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>.</p>

<p>Referenciado por <a class="el" href="network_8h.html#a2e032cd8fed30af6eacbaead8408c126">network_add_node()</a>.</p>

</div>
</div>
<a class="anchor" id="afb09d6d07cbb6e7ae2318a0aa4f6e875"></a><!-- doxytag: member="list.c::list_destroy" ref="afb09d6d07cbb6e7ae2318a0aa4f6e875" args="(List l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void list_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destruye una lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00174">174</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="structs_list.html#ad0ef7e1b5e8b52fff027720e57bebf03">sList::last</a>, <a class="el" href="list_8c.html#a56a64bdb02666e3a7ab1a64cb37c09b5">list_is_empty()</a>, <a class="el" href="structs_node.html#a565de7365cb7dce7aedc47a08a888d87">sNode::next</a>, <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>, <a class="el" href="structs_node.html#a113b56e5ef905be5322e2fa3905b9575">sNode::tup</a> y <a class="el" href="tuple_8c.html#af8c1a0758eeec0c5b89e0ddd9ea7cf52">tuple_destroy()</a>.</p>

<p>Referenciado por <a class="el" href="hashtbl_8h.html#a4c57259cd505c293809adf10fa98cd7a">hashtbl_destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="a70b22370b67357786efde98fad8aa75c"></a><!-- doxytag: member="list.c::list_destroy_elem" ref="a70b22370b67357786efde98fad8aa75c" args="(List l, elem e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_list.html">List</a> list_destroy_elem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs_tuple.html">elem</a>&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Elimina un elemento de la lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00106">106</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="list_8c.html#a9488cf0bffafdf9a10b591b465b47743">list_exists_elem()</a>, <a class="el" href="list_8c.html#a56a64bdb02666e3a7ab1a64cb37c09b5">list_is_empty()</a>, <a class="el" href="structs_node.html#a565de7365cb7dce7aedc47a08a888d87">sNode::next</a>, <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>, <a class="el" href="structs_node.html#a113b56e5ef905be5322e2fa3905b9575">sNode::tup</a>, <a class="el" href="tuple_8c.html#af6fa1108be143014167c12ce83131a00">tuple_compare()</a> y <a class="el" href="tuple_8c.html#af8c1a0758eeec0c5b89e0ddd9ea7cf52">tuple_destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="a9488cf0bffafdf9a10b591b465b47743"></a><!-- doxytag: member="list.c::list_exists_elem" ref="a9488cf0bffafdf9a10b591b465b47743" args="(List l, elem e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool list_exists_elem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs_tuple.html">elem</a>&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Verifica si el elemnto pertenece a la lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00054">54</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="list_8c.html#a56a64bdb02666e3a7ab1a64cb37c09b5">list_is_empty()</a>, <a class="el" href="structs_node.html#a565de7365cb7dce7aedc47a08a888d87">sNode::next</a>, <a class="el" href="structs_node.html#a113b56e5ef905be5322e2fa3905b9575">sNode::tup</a> y <a class="el" href="tuple_8c.html#af6fa1108be143014167c12ce83131a00">tuple_compare()</a>.</p>

<p>Referenciado por <a class="el" href="list_8h.html#a70b22370b67357786efde98fad8aa75c">list_destroy_elem()</a> y <a class="el" href="network_8h.html#a2e032cd8fed30af6eacbaead8408c126">network_add_node()</a>.</p>

</div>
</div>
<a class="anchor" id="a485ab244d725fddf0f2bc2e263250756"></a><!-- doxytag: member="list.c::list_get_elem" ref="a485ab244d725fddf0f2bc2e263250756" args="(List l, long int position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_tuple.html">elem</a> list_get_elem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long int&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve un elemento de la lista segun su posicion </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00154">154</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#ad06fc76bf7013278d70a5c668aa29de5">sList::first</a>, <a class="el" href="list_8c.html#ac717ae40c94d5cb0fdbe46e08f2c639e">list_get_size()</a>, <a class="el" href="structs_node.html#a565de7365cb7dce7aedc47a08a888d87">sNode::next</a>, <a class="el" href="structs_node.html#a113b56e5ef905be5322e2fa3905b9575">sNode::tup</a> y <a class="el" href="tuple_8c.html#af3404883658f7b96d761a197eb73b625">tuple_clone()</a>.</p>

<p>Referenciado por <a class="el" href="network_8h.html#aa9c38ef77dcf1df779b81eaa7f9f91ce">network_get_capacity()</a> y <a class="el" href="network_8h.html#a7284c2b25118f29553d6ce6262f95a54">network_get_neighbours()</a>.</p>

</div>
</div>
<a class="anchor" id="ac717ae40c94d5cb0fdbe46e08f2c639e"></a><!-- doxytag: member="list.c::list_get_size" ref="ac717ae40c94d5cb0fdbe46e08f2c639e" args="(List l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int list_get_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Obtiene el tamaño de una lista </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00100">100</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>.</p>

<p>Referenciado por <a class="el" href="list_8h.html#a485ab244d725fddf0f2bc2e263250756">list_get_elem()</a>, <a class="el" href="network_8h.html#aa9c38ef77dcf1df779b81eaa7f9f91ce">network_get_capacity()</a> y <a class="el" href="network_8h.html#a7284c2b25118f29553d6ce6262f95a54">network_get_neighbours()</a>.</p>

</div>
</div>
<a class="anchor" id="a56a64bdb02666e3a7ab1a64cb37c09b5"></a><!-- doxytag: member="list.c::list_is_empty" ref="a56a64bdb02666e3a7ab1a64cb37c09b5" args="(List l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool list_is_empty </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_list.html">List</a>&#160;</td>
          <td class="paramname"><em>l</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Verifica si la lista es vacia </p>

<p>Definición en la línea <a class="el" href="list_8c_source.html#l00043">43</a> del archivo <a class="el" href="list_8c_source.html">list.c</a>.</p>

<p>Hace referencia a <a class="el" href="structs_list.html#a439227feff9d7f55384e8780cfc2eb82">sList::size</a>.</p>

<p>Referenciado por <a class="el" href="list_8h.html#afb09d6d07cbb6e7ae2318a0aa4f6e875">list_destroy()</a>, <a class="el" href="list_8h.html#a70b22370b67357786efde98fad8aa75c">list_destroy_elem()</a> y <a class="el" href="list_8h.html#a9488cf0bffafdf9a10b591b465b47743">list_exists_elem()</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="list_8c.html">list.c</a>      </li>
      <li class="footer">Generado el Miércoles, 13 de Abril de 2011 20:34:14 para bfsNet por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
